Created: 2022-07-09
Tags: #fleeting
Can be found at /etc/passwd
passwd is a plain text file
Contains list of
Quick Tips
All fields are separated by colon symbol. All have 7 fields

Username
Username, that's it. What more can you ask for?
Passoword
-> x character indicates encypted password is stored at /etc/shadow.
passwd
You need to use passwd command to compute hash of a password typed at CLI
Store/update the hash of the password in etc/shadow file.
User ID (UID)
Each user must be assigned with an ID
0 reversed for root
1-99 for other predefined accounts
100-999 for administrative and system accounts/groups
Group ID (GID)
Primary group ID (stored in /etc/group)
User ID Info (GECOS)
Comment field. Allows you to add extra info.
Home Directory
Absolute path to directory when user will be logged in
Command/Shell
Absolute path of command/shell (bin/bash)
Please note that it does not have to be a shell
sysadmin can use the nologin shell, sbin/nologin